package com.zhonghualub.base.controller;

import com.zhonghualub.base.service.IGoodsService;
import com.zhonghualub.common.entity.Result;
import com.zhonghualub.common.entity.ResultCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ys
 * desc: 商品
 * date: 2020/10/21
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {
    @Autowired
    private IGoodsService goodsService;

    @GetMapping("/list")
    public Result searchGoodsList() {
        return new Result(ResultCode.SUCCESS, goodsService.searchGoodsList());
    }
}
